define (require, exports, module) ->
  # 基础服务
  base_api = require 'mods/api/base_api'
  # 定义组件
  module.exports =

    # 获取登录用户信息
    updateUserInfo: (params) ->
      url = "/user_update"
      return base_api.postRequestByParams url, params

    # 获取用户风险等级信息
    getUserRiskInfo: (params) ->
      url = '/rest/qry/QueryRiskAssessment'
      return base_api.postRequestByParams url, params